import re, sys

for filepath in sys.argv[1:]:
	content = open(filepath, 'r').read()
	parts   = re.compile('(/\*\*.*?\*/)', re.S).split(content)
	output  = []
	if parts[0]:
		output.append('print """' + parts[0] + '"""')
	for i in range(1, len(parts), 2):
		output.append(parts[i][3:-2])
		output.append('"""' + parts[i+1] + '"""')
	print ''.join(output)
